/**
 * 全局api管理模块
 */
import type { UserType } from './types'
import http from './http'

// 获取用户信息，调用户中心接口
export function getUserInfo(params: { refresh_token: string, clientId: string }) {
  return http.get<UserType>(
    `/standard/usermanage-auth/openapi/users/v1/getUserInfoByRt?client_id=${params.clientId}`,
    params,
  )
}
